#include "../comm.h"
class Solution {
public:
    vector<int> findIndices(vector<int>& nums, int indexDifference, int valueDifference) {
        int n = nums.size();
        for(int i = 0; i + indexDifference< n; ++i)
        {
            int x = nums[i];
            for(int j = i + indexDifference; j < n; ++j)
                if(abs(x - nums[j]) >= valueDifference)
                    return {i, j};
        }
        return {-1, -1 };
    }
};